home *** CD-ROM | disk | FTP | other *** search
- function disableControls()
- {
- pageMgr.enabled = false;
- }
- function enableControls()
- {
- pageMgr.enabled = true;
- }
- function showCredits()
- {
- _level0.pageMgr.removePage();
- _level0.entries._visible = false;
- trace("Going to credits");
- _level0.sections.selectedIndex = undefined;
- _level0.pageMgr.buildPage(4,{});
- }
- function showPage(pageName, pageBody)
- {
- _level0.pageMgr.removePage();
- _level0.entries._visible = false;
- _level0.listSeparator2._visible = false;
- _level0.pageMgr.setLocation(165,0);
- _level0.entries.visible = false;
- _level0.pageMgr.buildPage(3,{label:pageName,maindesc:pageBody});
- _level0.sections.selectedIndex = undefined;
- }
- function contentDone()
- {
- gotoAndStop("fadeToWelcome");
- play();
- }
- function setSection(secName)
- {
- dataSource.push({label:secName,data:[]});
- }
- function setFooterPage(pageTitle, pageBody)
- {
- footerPages.push({label:pageTitle,data:pageBody});
- }
- function setApp(secNum, appName, fullTitle)
- {
- var _loc1_ = dataSource[secNum - 1].data.push({label:appName,data:{}});
- if(fullTitle != undefined)
- {
- dataSource[secNum - 1].data[_loc1_ - 1].fulltitle = fullTitle;
- }
- }
- function setSectionColour(secNum, colAttrName, colValue)
- {
- if(dataSource[secNum - 1].colours == undefined)
- {
- dataSource[secNum - 1].colours = new mx.styles.CSSStyleDeclaration();
- }
- var _loc1_ = colValue.split(",");
- var _loc2_ = "0x" + Number(_loc1_[0]).toString(16) + Number(_loc1_[1]).toString(16) + Number(_loc1_[2]).toString(16);
- dataSource[secNum - 1].colours[colAttrName] = _loc2_;
- }
- function setHighlight(secNum, hlNum, hlTitle, hlDesc, entryNum, hlImage)
- {
- if(dataSource[secNum - 1].highlights == undefined)
- {
- dataSource[secNum - 1].highlights = new Array();
- }
- dataSource[secNum - 1].highlights.push({title:hlTitle,desc:hlDesc,target:entryNum - 1,imagePath:hlImage});
- }
- function setUpdate(secNum, entryNum, entryTitle)
- {
- if(dataSource[secNum - 1].updates == undefined)
- {
- dataSource[secNum - 1].updates = new Array();
- }
- dataSource[secNum - 1].updates.push({label:entryTitle,target:entryNum - 1});
- }
- function setSectionAttribute(secNum, attrName, attrValue)
- {
- dataSource[secNum - 1][attrName] = attrValue;
- }
- function setAppAttribute(secNum, appNum, attrName, attrValue)
- {
- dataSource[secNum - 1].data[appNum - 1].data[attrName] = attrValue;
- }
- function setSimpleLink(secNum, appNum, linkLabel, linkTarget)
- {
- if(dataSource[secNum - 1].data[appNum - 1].data.links == undefined)
- {
- dataSource[secNum - 1].data[appNum - 1].data.links = new Array();
- }
- dataSource[secNum - 1].data[appNum - 1].data.links.push({label:linkLabel,target:linkTarget});
- }
- function setComplexLink(secNum, appNum, linkNum, linkLabel)
- {
- if(dataSource[secNum - 1].data[appNum - 1].data.links == undefined)
- {
- dataSource[secNum - 1].data[appNum - 1].data.links = new Array();
- }
- dataSource[secNum - 1].data[appNum - 1].data.links.push({label:linkLabel,linkNum:linkNum});
- }
- function setStep(secNum, appNum, linkNum, stepDesc, stepLabel, stepTarget)
- {
- if(dataSource[secNum - 1].data[appNum - 1].data.links[linkNum - 1] == undefined)
- {
- dataSource[secNum - 1].data[appNum - 1].data.links[linkNum - 1] = new Array();
- }
- dataSource[secNum - 1].data[appNum - 1].data.links[linkNum - 1].data.push({label:stepLabel,description:stepDesc,target:stepTarget});
- }
- function showData()
- {
- var _loc2_ = 0;
- while(_loc2_ < dataSource.length)
- {
- var _loc3_ = dataSource[_loc2_].label;
- var _loc1_ = 0;
- while(_loc1_ < dataSource[_loc2_].data.length)
- {
- for(prop in dataSource[_loc2_].data[_loc1_].data)
- {
- if(typeof dataSource[_loc2_].data[_loc1_].data[prop] == "object")
- {
- showObject(dataSource[_loc2_].data[_loc1_].data[prop],1);
- }
- }
- _loc1_ = _loc1_ + 1;
- }
- _loc2_ = _loc2_ + 1;
- }
- }
- function showObject(theObj, nestLevel)
- {
- for(prop in theObj)
- {
- if(typeof theObj[prop] == "object")
- {
- showObject(theObj[prop],nestLevel + 1);
- }
- else
- {
- var _loc2_ = nestLevel * 2;
- indentText = "";
- var _loc1_ = 0;
- while(_loc1_ < _loc2_)
- {
- indentText += " ";
- _loc1_ = _loc1_ + 1;
- }
- }
- }
- }
- function getHeadlineHeight(taText, taWidth)
- {
- var _loc1_ = new TextFormat();
- _loc1_.font = "embed_MetaMediumLF-Roman";
- _loc1_.size = 28;
- _loc1_.bold = _loc1_.italic = _loc1_.underline = _loc1_.bullet = false;
- _loc1_.align = "left";
- _loc1_.leading = 12;
- var _loc2_ = _loc1_.getTextExtent(taText,taWidth);
- return _loc2_.textFieldHeight;
- }
- function getSizeFromString(size)
- {
- var _loc5_ = "0".charCodeAt(0);
- var _loc4_ = "9".charCodeAt(0);
- var _loc1_ = undefined;
- _loc1_ = 0;
- while(_loc1_ < size.length - 1)
- {
- var _loc2_ = size.charCodeAt(_loc1_);
- if(_loc2_ < _loc5_ || fontSize.charCodeAt > _loc4_)
- {
- break;
- }
- _loc1_ = _loc1_ + 1;
- }
- return Number(size.substring(0,_loc1_ - 1));
- }
- function styleSheetToTextFormat(myStyle)
- {
- var _loc1_ = new TextFormat();
- _loc1_.font = myStyle.fontFamily;
- _loc1_.size = getSizeFromString(myStyle.fontSize);
- _loc1_.align = myStyle.textAlign;
- return _loc1_;
- }
- function showObjectSummary(theObject, thePath)
- {
- trace("Object summary for: " + thePath);
- trace("-------------------");
- for(prop in theObject)
- {
- var _loc1_ = prop;
- var _loc2_ = theObject[_loc1_];
- trace(_loc1_ + " : " + _loc2_);
- }
- trace("");
- }
- function replaceAll(oldStr, oldToken, newToken)
- {
- trace("oldStr: " + oldStr);
- var _loc3_ = 0;
- var _loc5_ = 0;
- var _loc2_ = new String();
- trace("New text is " + _loc2_);
- var _loc1_ = undefined;
- trace("startIndex: " + _loc3_);
- trace("length of oldStr: " + oldStr.length);
- trace("newStr before while loop: " + _loc2_);
- trace("");
- while(_loc3_ < oldStr.length)
- {
- _loc1_ = oldStr.indexOf(oldToken,_loc3_);
- trace("--- start of loop iteration ---");
- trace("foundAt: " + _loc1_);
- trace("newStr was: " + _loc2_);
- if(_loc1_ == _loc3_)
- {
- trace("BRANCH 1");
- _loc2_ = _loc2_.concat(newToken);
- _loc3_ = _loc1_ + 1;
- _loc5_ = _loc1_ + 1;
- }
- else
- {
- if(_loc1_ == -1)
- {
- trace("BRANCH 3");
- _loc2_ = _loc2_.concat(oldStr.substring(_loc3_,oldStr.length));
- break;
- }
- trace("BRANCH 2");
- _loc2_ = _loc2_.concat(oldStr.substring(_loc3_,_loc1_),newToken);
- _loc3_ = _loc1_ + 1;
- _loc5_ = _loc1_ + 1;
- }
- trace("newStr now is: " + _loc2_);
- trace("--- end of loop iteration ---");
- trace("");
- }
- trace("New text is " + _loc2_);
- return _loc2_;
- }
- var loadingBarStyle = _global.styles.loadingBarStyle = new mx.styles.CSSStyleDeclaration();
- loadingBarStyle.themeColor = "0x990000";
- loadingBarStyle.embedFonts = true;
- loadingBarStyle.fontFamily = "embed_MetaBoldLF-Caps";
- loadingBarStyle.fontSize = 14;
- _level0.loadingBar.pBar.setStyle("styleName","loadingBarStyle");
- var boxTitleStyle = _global.styles.boxTitleStyle = new mx.styles.CSSStyleDeclaration();
- boxTitleStyle.styleName = "boxTitleStyle";
- boxTitleStyle.textAlign = "left";
- boxTitleStyle.borderStyle = "none";
- boxTitleStyle.backgroundColor = undefined;
- boxTitleStyle.selectionDisabledColor = "0xB8C5CC";
- boxTitleStyle.disabledColor = "0xDCDCDC";
- boxTitleStyle.fontWeight = "normal";
- boxTitleStyle.textDecoration = "none";
- var boxDescStyle = _global.styles.boxDescStyle = new mx.styles.CSSStyleDeclaration();
- boxDescStyle.styleName = "boxDescStyle";
- boxDescStyle.textAlign = "left";
- boxDescStyle.borderStyle = "none";
- boxDescStyle.backgroundColor = undefined;
- boxDescStyle.selectionDisabledColor = "0xB8C5CC";
- boxDescStyle.disabledColor = "0xDCDCDC";
- boxDescStyle.fontWeight = "normal";
- boxDescStyle.textDecoration = "none";
- var secListStyle = _global.styles.secListStyle = new mx.styles.CSSStyleDeclaration();
- secListStyle.styleName = "secListStyle";
- secListStyle.textAlign = "left";
- secListStyle.marginLeft = 6;
- secListStyle.borderStyle = "none";
- secListStyle.fontFamily = "embed_MetaMediumLF-Roman";
- secListStyle.fontSize = 14;
- secListStyle.rowHeight = "auto";
- secListStyle.color = "0x444444";
- secListStyle.backgroundColor = "0xFFFFFF";
- secListStyle.textSelectedColor = "0xFFFFFF";
- secListStyle.selectionColor = "0x990000";
- secListStyle.textRollOverColor = "0x00396B";
- secListStyle.rollOverColor = "0xCCCCBC";
- secListStyle.disabledColor = "0x8FA7B3";
- secListStyle.selectionDisabledColor = "0xB8C5CC";
- var entListStyle = _global.styles.entListStyle = new mx.styles.CSSStyleDeclaration();
- entListStyle.styleName = "entListStyle";
- entListStyle.textAlign = "left";
- entListStyle.marginLeft = 6;
- entListStyle.borderStyle = "none";
- entListStyle.fontFamily = "embed_MetaMediumLF-Roman";
- entListStyle.fontSize = 14;
- entListStyle.rowHeight = "auto";
- entListStyle.themeColor = "0x990000";
- entListStyle.color = "0x444444";
- entListStyle.backgroundColor = "0xFFFFFF";
- entListStyle.textSelectedColor = "0xFFFFFF";
- entListStyle.selectionColor = "0x990000";
- entListStyle.textRollOverColor = "0x00396B";
- entListStyle.rollOverColor = "0xCCCCBC";
- entListStyle.disabledColor = "0x8FA7B3";
- entListStyle.selectionDisabledColor = "0xB8C5CC";
- var footerListStyle = _global.styles.footerListStyle = new mx.styles.CSSStyleDeclaration();
- footerListStyle.styleName = "footerListStyle";
- footerListStyle.textAlign = "left";
- footerListStyle.borderStyle = "solid";
- footerListStyle.backgroundColor = undefined;
- footerListStyle.color = "0x444444";
- footerListStyle.themeColor = "0x005BAB";
- footerListStyle.rollOverColor = "0xCFDEE5";
- footerListStyle.textRollOverColor = "0xFFFFFF";
- footerListStyle.textSelectedColor = "0xFFFFFF";
- footerListStyle.selectionColor = "0x005BAB";
- footerListStyle.selectionDisabledColor = "0xB8C5CC";
- footerListStyle.disabledColor = "0x8FA7B3";
- footerListStyle.fontFamily = "embed_Bliss2";
- footerListStyle.fontSize = 12;
- var headlineStyle = _global.styles.headlineStyle = new mx.styles.CSSStyleDeclaration();
- headlineStyle.styleName = "headlineStyle";
- headlineStyle.textAlign = "left";
- headlineStyle.backgroundColor = undefined;
- headlineStyle.color = "0x000000";
- headlineStyle.selectionDisabledColor = "0xB8C5CC";
- headlineStyle.disabledColor = "0xDCDCDC";
- headlineStyle.fontFamily = "embed_MetaMediumLF-Roman";
- headlineStyle.fontSize = 28;
- headlineStyle.fontWeight = "normal";
- headlineStyle.leading = 12;
- headlineStyle.textDecoration = "none";
- var appTitleStyle = _global.styles.appTitleStyle = new mx.styles.CSSStyleDeclaration();
- appTitleStyle.styleName = "appTitleStyle";
- appTitleStyle.textAlign = "left";
- appTitleStyle.borderStyle = "none";
- appTitleStyle.color = "0x000000";
- appTitleStyle.backgroundColor = undefined;
- appTitleStyle.selectionDisabledColor = "0xB8C5CC";
- appTitleStyle.disabledColor = "0x8FA7B3";
- appTitleStyle.fontFamily = "embed_MetaBoldLF-Roman";
- appTitleStyle.fontSize = 28;
- appTitleStyle.fontWeight = "normal";
- appTitleStyle.textDecoration = "none";
- var bodyStyle = _global.styles.bodyStyle = new mx.styles.CSSStyleDeclaration();
- bodyStyle.styleName = "bodyStyle";
- bodyStyle.borderStyle = "none";
- bodyStyle.backgroundColor = undefined;
- bodyStyle.selectionDisabledColor = "0xB8C5CC";
- bodyStyle.disabledColor = "0xDCDCDC";
- var buttonStyle = _global.styles.buttonStyle = new mx.styles.CSSStyleDeclaration();
- buttonStyle.styleName = "buttonStyle";
- buttonStyle.themeColor = "0x990000";
- buttonStyle.color = "0x444444";
- buttonStyle.disabledColor = "0xDCDCDC";
- buttonStyle.fontFamily = "embed_MetaBoldLF-Caps";
- buttonStyle.fontSize = 13;
- buttonStyle.fontWeight = buttonStyle.fontStyle = "normal";
- var scrollTextAreaStyle = _global.styles.scrollTextAreaStyle = new mx.styles.CSSStyleDeclaration();
- scrollTextAreaStyle.styleName = "scrollTextAreaStyle";
- scrollTextAreaStyle.themeColor = "0x990000";
- scrollTextAreaStyle.disabledColor = "0xDCDCDC";
- scrollTextAreaStyle.fontFamily = "embed_MetaMediumLF-Roman";
- var entListScrollBar = _global.styles.entListScrollBar = new mx.styles.CSSStyleDeclaration();
- entListScrollBar.styleName = "entListScrollBar";
- entListScrollBar.themeColor = "0x990000";
- _global.styles.TextArea.setStyle("backgroundColor",undefined);
- _global.textStyles = new TextField.StyleSheet();
- textStyles.setStyle("headline",{fontFamily:"embed_KnockoutHTF69FullLiteweight",fontSize:"36px",color:"#000000",textDecoration:"none",textAlign:"left",fontWidth:"normal",leading:"-25"});
- textStyles.setStyle("headlinedisabled",{fontFamily:"embed_KnockoutHTF69FullLiteweight",fontSize:"36px",color:"#DCDCDC",textDecoration:"none",textAlign:"left",fontWidth:"normal",leading:"-25"});
- textStyles.setStyle("pagetitle",{fontFamily:"embed_KnockoutHTF69FullLiteweight",fontSize:"22px",color:"#000000",textDecoration:"none"});
- textStyles.setStyle("pagedesc",{fontFamily:"embed_Bliss2",fontSize:"16px",fontWeight:"normal",color:"#000000",textDecoration:"none"});
- textStyles.setStyle("boxtitle",{fontFamily:"embed_KnockoutHTF69FullLiteweight",fontSize:"27px",color:"#000000",textDecoration:"none"});
- textStyles.setStyle("boxdesc",{fontFamily:"embed_Bliss2",fontSize:"15px",color:"#000000",textDecoration:"none",display:"inline"});
- textStyles.setStyle("columnboldwhite",{fontFamily:"embed_Arial_Black",fontSize:"12px",fontWeight:"normal",color:"#FFFFFF",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("columnboldwhitedisabled",{fontFamily:"embed_Arial_Black",fontSize:"12px",fontWeight:"normal",color:"#A8A8A8",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("columnboldgrey",{fontFamily:"embed_Arial_Black",fontSize:"12px",fontWeight:"normal",color:"#666666",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("columnboldgreydisabled",{fontFamily:"embed_Arial_Black",fontSize:"12px",fontWeight:"normal",color:"#DCDCDC",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("column",{fontFamily:"embed_Bliss2",fontSize:"14px",color:"#000000",textDecoration:" none",textAlign:"left"});
- textStyles.setStyle("pagebody",{fontFamily:"embed_Bliss2",fontSize:"16px",color:"#000000",borderStyle:"none",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("pagebodybold",{fontFamily:"embed_Bliss2",fontSize:"16px",color:"#000000",borderStyle:"none",textDecoration:"none",textAlign:"left"});
- textStyle.setStyle("subheading",{fontFamily:"embed_MetaBoldLF-Roman",fontSize:"13px",color:"#000000",borderStyle:"none",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle("footerbody",{fontFamily:"Embedded_Arial",fontSize:"10px",fontWeight:"normal",color:"#000000",textDecoration:"none",textAlign:"left"});
- textStyles.setStyle(".hyperlink",{textDecoration:"underline"});
- textStyles.setStyle(".desclink",{color:"#0000FF"});
- textStyles.setStyle(".boxtitlelink",{color:"#FFFF00"});
- textStyles.setStyle(".underlined",{textDecoration:"underline"});
- textStyles.setStyle("a:link",{color:"#005BAB",textDecoration:"none"});
- textStyles.setStyle("a:hover",{color:"#E50000",textDecoration:"underline"});
- textStyles.setStyle("a:active",{color:"#005BAB",textDecoration:"underline"});
- var dataSource = new Array();
- var footerPages = new Array();
- var __nextDepth = 10;
- var pageMgr = new PageManager();
- pageMgr.setLocation(350,0);
- var titleFormat = _level0.styleSheetToTextFormat(_global.textStyles.getStyle("headline"));
- showObjectSummary(titleFormat,"_level0.titleFormat");
- stop();
-